﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Carrinho.aspx.cs" Inherits="BYGames.Carrinho" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSource2">
        <Columns>
            
            <asp:CommandField ShowDeleteButton="True" />
            
            <asp:BoundField DataField="Id" HeaderText="Id" 
                SortExpression="Id" />
            <asp:BoundField DataField="Nome" HeaderText="Nome" 
                SortExpression="Nome" />
            <asp:BoundField DataField="DescBreve" HeaderText="DescBreve" 
                SortExpression="DescBreve" />
            <asp:BoundField DataField="DescCompleta" HeaderText="DescCompleta" 
                SortExpression="DescCompleta" />
            <asp:BoundField DataField="EspTec" HeaderText="EspTec" 
                SortExpression="EspTec" />
            <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor" />
            <asp:BoundField DataField="Desconto" HeaderText="Desconto" 
                SortExpression="Desconto" />
            <asp:BoundField DataField="QtdEstoque" HeaderText="QtdEstoque" 
                SortExpression="QtdEstoque" />
            <asp:CheckBoxField DataField="Status" HeaderText="Status" 
                SortExpression="Status" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="Cart" 
        TypeName="BYGamesBLL.Sistema" DeleteMethod="RemoveFromCart">
        <DeleteParameters>
            <asp:Parameter Name="prod" Type="Object" />
            <asp:SessionParameter Name="ped" SessionField="Pedido" Type="Object" />
        </DeleteParameters>
        <SelectParameters>
            <asp:SessionParameter Name="ped" SessionField="Pedido" Type="Object" />
        </SelectParameters>
    </asp:ObjectDataSource>
    Preço Total: 
    <asp:Label ID="lblPrecoTotal" runat="server" Text=""></asp:Label>
    
    <asp:Button ID="btnComprar" runat="server" onclick="btnComprar_Click" 
        Text="Comprar" />
    
</asp:Content>
